//
//  ViewController.m
//  LBEmptyData
//
//  Created by 杨庆人 on 2017/9/28.
//  Copyright © 2017年 杨庆人. All rights reserved.
//

#import "ViewController.h"
#import <LBEmptyData/UIView+LBEmptyData.h>
#import <Masonry/Masonry.h>

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBar.translucent = NO;
    self.navigationController.tabBarController.tabBar.translucent = NO;

    UITableView * tableView = [[UITableView alloc] init];
    tableView.dataSource = (id<UITableViewDataSource>)self;
    tableView.delegate = (id<UITableViewDelegate>)self;
    tableView.tableFooterView = [[UIView alloc] init];
//    [tableView lb_setEmptyDataWithBsImage:[UIImage imageNamed:@"LBEmptyData.bundle/noData"] title:@"10亿采购项目" detail:@"寻找合适供应商" button:nil block:^(NSInteger index) {
//        NSLog(@"index=%ld",index);
//        [tableView lb_removeEmptyData];
//    }];
    [tableView lb_setEmptyNoData:@"2222" detail:@"qweqweqeqweqweqeqw"];
    
//    [tableView lb_setEmptyNoData:@"标题ia" detail:@"点击下面点击下面点击下面点击下面点击下面点击下面点击下面点击下面" customBtnName:@"buttonName" block:^{
//
//    }];
//    [tableView lb_setEmptyDataNoImageWithTitle:@"123123"];
    
//    [tableView lb_setEmptyDataNoImageWithTitle:@"123123" detail:@"1231231"];
    
    [self.view addSubview:tableView];

    [tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(self.view);
    }];


    // Do any additional setup after loading the view, typically from a nib.
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 0;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    return [[UITableViewCell alloc] init];
}

@end
